"""装饰器"""
def check(func):
    def inner():
        print("点击登录按钮")
        print("进入登录页面")
        print("点击登录...")
        print("登录成功")
        func()

    return inner


@check  # shopping=check(shopping)
def shopping():
    print("将爱依服旗舰店的衬衫添加至购物车")


# shopping = check(shopping)  # shopping=inner
# 被装饰的函数，调用本身的时候，其实是在调用的装饰器的里面的函数
shopping()  # shopping()=inner()
